<!DOCTYPE html>

<html lang="en">
<title>pdf预览</title>
<head>
    <style type="text/css">
        body{
            margin: 0;
            padding:0;
            border:0;
        }
    </style>
    <link rel="icon" type="image/x-icon" href="search.ico">
</head>
<body>
    <iframe th:src ="${fileUrl}"  width="100%" frameborder="0"></iframe>
</body>
<script type="text/javascript">
    document.getElementsByTagName('iframe')[0].height = document.documentElement.clientHeight-10;
    window.onresize = function(){
        var fm = document.getElementsByTagName("iframe")[0];
        fm.height = window.document.documentElement.clientHeight-10;
    }
</script>
</html>